package main

import (
	"github.com/gin-gonic/gin"
	"oam-manage-backend/config"
	_ "oam-manage-backend/controllers/initcontroller"
	"oam-manage-backend/middlewares"
	"oam-manage-backend/routers"
	"oam-manage-backend/utils/logs"
)

func main() {
	// 1.加载程序的配置

	// 2.配置gin
	r := gin.Default()
	r.Use(middlewares.JWTAuth)
	logs.Info(nil, "程序启动成功")

	routers.RegisterRouters(r)
	r.Run(config.Port)
}
